package pta07;


class Account{
	private int balance;
	public void setBalance(int balance) {
		this.balance = balance;
	}
	public int getBalance() {
		return balance;
	}
	public Account(int balance){
		super();
		this.balance = balance;
	}
	public  synchronized void deposit(int money){
		balance = balance + money;
	}
	public  synchronized void withdraw(int money){
		balance = balance - money;
	}
}
public class Hanshu4 {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
